package com.lwy.unos.stuinfo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwy.common.utils.PageUtils;
import com.lwy.common.utils.Query;

import com.lwy.unos.stuinfo.dao.ClassInfoDao;
import com.lwy.unos.stuinfo.entity.ClassInfoEntity;
import com.lwy.unos.stuinfo.service.ClassInfoService;


@Service("classInfoService")
public class ClassInfoServiceImpl extends ServiceImpl<ClassInfoDao, ClassInfoEntity> implements ClassInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ClassInfoEntity> page = this.page(
                new Query<ClassInfoEntity>().getPage(params),
                new QueryWrapper<ClassInfoEntity>()
        );
        return new PageUtils(page);
    }

}